package hello.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author hiberk
 * @Date 2017/7/31 11:56
 */
@Controller
@RequestMapping("index.jsp")
public class IndexController {
    @RequestMapping
    public ModelAndView index(){
        ModelAndView view = new ModelAndView("index");
        System.out.println("this is index mapping");
        return view;
    }
}
